package com.ag.zhh.vo;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;


/**
 * Contact entity. OA通讯录ValueObject
 * 
 * 
 * @author 张颢铧
 */

@Entity
@Table(name = "TB_CONTACT", schema = "dbo")
public class Contact implements java.io.Serializable {

	// Fields

	private String CId;
	
	private String CName;
	private String CVideo;
	private String CFax;
	private String CCellphone;
	private String CTel;
	private Long CIsleader;

	// Constructors

	

	/** default constructor */
	public Contact() {
	}

	/** minimal constructor */
	public Contact(String CId) {
		this.CId = CId;
	}

	/** full constructor */
	public Contact(String id, String name, String video, String fax,
			String cellphone, String tel, Long isleader) {
		super();
		CId = id;
		CName = name;
		CVideo = video;
		CFax = fax;
		CCellphone = cellphone;
		CTel = tel;
		CIsleader = isleader;
	}

	// Property accessors
	@Id
	@Column(name = "C_ID", unique = true, nullable = false, length = 10)
	public String getCId() {
		return this.CId;
	}

	public void setCId(String CId) {
		this.CId = CId;
	}



	@Column(name = "C_NAME", length = 20)
	public String getCName() {
		return this.CName;
	}

	public void setCName(String CName) {
		this.CName = CName;
	}

	@Column(name = "C_VIDEO", length = 20)
	public String getCVideo() {
		return this.CVideo;
	}

	public void setCVideo(String CVideo) {
		this.CVideo = CVideo;
	}

	@Column(name = "C_FAX", length = 20)
	public String getCFax() {
		return this.CFax;
	}

	public void setCFax(String CFax) {
		this.CFax = CFax;
	}

	@Column(name = "C_CELLPHONE", length = 20)
	public String getCCellphone() {
		return this.CCellphone;
	}

	public void setCCellphone(String CCellphone) {
		this.CCellphone = CCellphone;
	}

	@Column(name = "C_TEL", length = 20)
	public String getCTel() {
		return this.CTel;
	}

	public void setCTel(String CTel) {
		this.CTel = CTel;
	}

	@Column(name = "C_ISLEADER", precision = 22, scale = 0)
	public Long getCIsleader() {
		return this.CIsleader;
	}

	public void setCIsleader(Long CIsleader) {
		this.CIsleader = CIsleader;
	}

}
